#列表生成式

list1=list(range(1,11))

print(list1)

list2=[x*x for x in range(1,11)]

print(list2)

list3=[x*x for x in range(1,11) if x%2==0]

print(list3)

list4=[m+n for m in 'ABC' for n in 'XYZ']

print(list4)


names=['huangxl','gouyd','rem','iris']

list5=[l.upper() for l in names]

print(list5)